package com.mc.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import com.mc.model.Path;
import com.mc.utils.PathUtil;
@Controller
@RequestMapping("/nb")
public class NewsAndBulletAction {
	private Path path = null;
	@RequestMapping("/allnews_{pagenow}")
	public String allnews(ModelMap modelMap,@PathVariable("pagenow")int pagrnow)
	{
		
		path = PathUtil.setPathParams(new String[]{"PackageName:News","ViewName:newses","ViewTitle:数计要闻","smenu:newes"});
		return PathUtil.returnStr(path, modelMap);
	}
	@RequestMapping("/allbullet_{pagenow}")
	public String allbullets(ModelMap modelMap,@PathVariable("pagenow") int pagenow)
	{
		path = PathUtil.setPathParams(new String[]{"PackageName:Bullets","ViewName:bullets","ViewTitle:数计公告","smenu:bullets"});
		return PathUtil.returnStr(path, modelMap);
	}
	
}
